package com.billing.service;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TUserEducation;
import com.billing.model.entity.TUserEducationBuffer;

public interface UserEducationBufferService {
	/**
	 * 增加数据
	 * @param userEducation
	 * @return
	 */
	public int insertTUserEducation(TUserEducationBuffer userEducation);
	/**
	 * 增加数据(根据主体数据)
	 * @param userEducation
	 * @return
	 */
	public int insertTUserEducationByMain(TUserEducation userEducation);
	/**
	 * 查询数据通过 userid
	 * @param userid
	 * @return
	 */
	TUserEducationBuffer selectUserEducationByUid(@Param("userid")String userid);
	/**
	 * 修改数据  
	 * @param userEducation
	 * @return
	 */
	public int updateUserEducation(TUserEducationBuffer userEducation);
	/**
	 * 修改数据  (根据主体数据)
	 * @param userEducation
	 * @return
	 */
	public int updateUserEducationByMain(TUserEducation userEducation);
	/**
	 * 通过id查询数据  
	 * @param id
	 * @return
	 */
	TUserEducationBuffer selectUserEducationById(@Param("id")String id);
	/**
	 * 修改数据用过userid
	 * @param userEducation
	 * @return
	 */
	public int updateUserEducationByUserid(TUserEducationBuffer userEducation);
	/**
	 * 修改数据用过userid(根据主体数据)
	 * @param userEducation
	 * @return
	 */
	public int updateUserEducationByUseridByMain(TUserEducation userEducation);
}
